<?php
function encode($str){
	$str=iconv("UTF-8", "GBK", $str); 
	$gbk='';
	for($i=0;$i<strlen($str);$i++){
		$gbk.=sprintf("%%%02X",ord(substr($str,$i,1))); 
	}
	return $gbk;
}
function cat($str){
	$url="http://s.1688.com/company/company_search.htm?keywords={$key}&button_click=top&earseDirect=false&n=y&pageSize=30&beginPage={$page}";
}
?> 